<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/5/21
 * Time: 2:08
 */
include '../classes/logincheck.php';
include '../classes/conn.php';
if(islogin()!='teacher_login') {
    die("error");
}
$id=$_POST['id'];

$query="delete from notice where Id='{$id}'";
$res=mysql_query($query);
if($res){
    echo '1';
}
else echo '0';